package c.x.jy.service.service;

import c.x.jy.common.utils.PageUtils;
import c.x.jy.dao.entity.MemberEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 会员信息表
 *
 * @author amwhyh
 * @email xxx@xx.com
 * @date 2021-05-20 20:09:48
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

	MemberEntity saveOrUpdateByOpenid(MemberEntity member);

	MemberEntity getMemberByOpenId(String openid);

	MemberEntity getCurrUser();

	MemberEntity selectMemberByIdForUpdate(Long memberId);

	MemberEntity selectByReferralCode(String referralCode);

	MemberEntity getMemberByCacheById(Long memberId);

 	void removeMemberCache(MemberEntity m);

    Integer countmymyconnection(Long id);

	List<MemberEntity> countmymyconnectionlist(Long id);
}


